var $$ = jQuery.noConflict();
(function ($, doc) {
    document.documentElement.style.fontSize = document.documentElement.clientWidth / 6.4 + 'px';
    $.init({
        swipeBack:true //启用右滑关闭功能
    });
    var data = {}
    var rangeList = document.querySelectorAll('input[type="range"]');
    for(var i=0,len=rangeList.length;i<len;i++){
        rangeList[i].addEventListener('input',function(){
            if(this.id.indexOf('field')>=0){
                document.getElementById(this.id+'-input').value = this.value;
            }else{
                document.getElementById(this.id+'-val').innerHTML = this.value;
            }


        });
    }
    $$('#send').on('touchend',function () {
        data.money=$$('#block1-range-val').html()
        data.days=$$('#block2-range-val').html()
        localStorage.setItem('userInfo',JSON.stringify(data))
        openPage('/wechat/toSamllBase')
    })
})(mui, document);